<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <el-card>
          <Detail title="总销售额" count="126560">
            <template slot="charts">
              <span>周同比&nbsp;&nbsp;56.67%</span>
              <i class="el-icon-caret-top" />
              <span>日同比&nbsp;&nbsp;19.6%</span>
              <i class="el-icon-caret-bottom" />
            </template>
            <template slot="footer">
              <span>日销售额￥ 12423</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="访问量" count="88460">
            <template slot="charts">
              <lineChart />
            </template>
            <template slot="footer">
              <span>日访问量 526</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="支付笔数" count="126560">
            <template slot="charts">
              <barChart />
            </template>
            <template slot="footer">
              <span>转换率 60%</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="运营活动效果" count="78%">
            <template slot="charts">
              <ProgressChart />
            </template>
            <template slot="footer">
              <span>周同比&nbsp;&nbsp;12%</span>
              <i class="el-icon-caret-top" />
              <span>日同比&nbsp;&nbsp;11%</span>
              <i class="el-icon-caret-bottom" />
            </template>
          </Detail>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Detail from './Detail'
import lineChart from './lineChart'
import barChart from './barChart'
import ProgressChart from './progressChart'
export default {
  name: 'Card',
  components: {
    Detail,
    lineChart,
    barChart,
    ProgressChart
  }
}
</script>

<style></style>
